import request from '@/utils/request'

// 查询专利实体列表
export function listPatent(query) {
  return request({
    url: '/web/patent/list',
    method: 'get',
    params: query
  })
}

// 查询专利实体详细
export function getPatent(id) {
  return request({
    url: '/web/patent/' + id,
    method: 'get'
  })
}

// 新增专利实体
export function addPatent(data) {
  return request({
    url: '/web/patent',
    method: 'post',
    data: data
  })
}

// 修改专利实体
export function updatePatent(data) {
  return request({
    url: '/web/patent',
    method: 'put',
    data: data
  })
}

// 删除专利实体
export function delPatent(id) {
  return request({
    url: '/web/patent/' + id,
    method: 'delete'
  })
}

// 导出专利实体
export function exportPatent(query) {
  return request({
    url: '/web/patent/export',
    method: 'get',
    params: query
  })
}